package com.itcm.skymail.auth.feign;

import com.itcm.common.utils.R;
import com.itcm.common.vo.ResultMemberVo;
import com.itcm.skymail.auth.vo.LoginUserVo;
import com.itcm.skymail.auth.vo.UserRegistVo;
import com.itcm.skymail.auth.vo.WeiboAccessVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * 描述:
 *
 * @author cm_fighting
 * @create 2020-11-06 5:56 下午
 */
@FeignClient("skymail-member")
public interface MemberFeignService {

    @PostMapping("/member/member/regist")
    R regist(@RequestBody UserRegistVo user);

    @PostMapping("/member/member/login")
    ResultMemberVo login(@RequestBody LoginUserVo user);

    @PostMapping("/member/member/weiboLogin")
    ResultMemberVo weiboLogin(WeiboAccessVo weiboAccessVo);
}
